package diancan;

public class ShowOrder {
    private Dish dish;
    private int buynumber;
    public ShowOrder(Dish dish,int buynumber){
        this.dish=dish;
        this.buynumber=buynumber;
    }

    public Dish getDish() {
        return dish;
    }

    public void setDish(Dish dish) {
        this.dish = dish;
    }

    public int getBuynumber() {
        return buynumber;
    }

    public void setBuynumber(int buynumber) {
        this.buynumber = buynumber;
    }
    public double price(){
        return dish.getPrice() * buynumber;
    }
}
